package pers.vic.quartz.tast;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 测试quartz配置
 * @author VIC
 *
 */
@Component
public class TestTask {
	
	private static Logger logger = LoggerFactory.getLogger(TestTask.class);
	
	@Scheduled(initialDelay=1000*60, fixedDelay=1000*60*60*24)
	public void process() {
		logger.info("info test Task------>>>>>>>>>------");
	}
	
	public static void main(String[] args) {
		int x = 0;
		int y =0;
		System.out.println(123);
		for(x=1;x<=20;x++) {
			for(y=1;y<=20;y++) {
				System.out.println("x=" + x +",y=" + y);
				System.out.println(22*x + 26*y);
				if(22*x + 26*y == 840) {
					System.out.println("x=" + x +",y=" + y);
				}
			}
		}
	}

}
